#  -*- coding:utf-8
'''

@File : TrackerCleaner

@Author: syl

@Date : 2020-05-02

@Desc :清理trackerList
'''


def main():
    trackers = []
    with open('track.txt') as fs:
        lines = fs.readlines()
        for l in lines:
            track = set(l.split(','))
            track.remove('')
            print(track)
            trackers.extend(track)
    with open('trackerList.txt', 'w+') as f:
        f.write(','.join(trackers))


if __name__ == '__main__':
    main()
